home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
monitory
/
amyload
/
printmessage.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-11-15
|
752b
|
33 lines
/*
static char *messages[] = {
"Blitter Overheating!",
"Blitter Temperature Critical!",
"CPU Load Critical!",
"System Overloaded - Please Log Out.",
"Use Me."
};
*/
#include <intuition/intuition.h>
#include "execdef.h"
#include "intuidef.h"
#include "windowinfo.h"
#include "PrintMessage.proto"
#include <graphics/proto.h>
void
PrintMessage(window, message, line_num, pen)
Window *window;
char *message;
short line_num;
unsigned char pen;
{
RastPort *rport;
rport = window->RPort;
SetAPen(rport, pen);
Move(rport, (short)(WINDOWINFO(window)->leftedge + 2), (short)((rport->TxHeight+2) * line_num + WINDOWINFO(window)->topedge + 2));
Text(rport, message, strlen(message));
}